package com.ml.mall.bean.req.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * Created by kyyang on 2021/8/2 22:54
 */
@Data
@ApiModel
public class SysUserForgetPasswdDto {

    @ApiModelProperty("user's email")
    @NotBlank(message = "email is not null!")
    private String acc;

    @NotBlank(message = "code is not null!")
    private String code;

    @NotBlank(message = "password is not null!")
    @Length(min = 6,max = 30,message = "password length is 6 to 30!")
    private String password;

}
